import os

path = os.path.abspath(os.path.dirname(__file__)).split("libs")[0]
work_spec = os.path.join(path, "work_spec")


class Location:
    # =======拍卖行相关坐标========
    PM_refresh = (1519, 121)  # 拍卖行刷新按钮
    PM_WP_refresh = (1146, 356)  # 拍卖行物品刷新按钮
    PM_OP_number = (1564, 785)  # 打开数量输入器
    PM_GM = (1537, 967)  # 购买物品
    PM_QR = (1206, 849)  # 确认购买
    PM_num_0 = (1888, 840)
    PM_num_1 = (1819, 703)
    PM_num_2 = (1948, 697)
    PM_num_3 = (2066, 688)
    PM_num_4 = (1817, 575)
    PM_num_5 = (1937, 566)
    PM_num_6 = (2077, 570)
    PM_num_7 = (1808, 447)
    PM_num_8 = (1944, 440)
    PM_num_9 = (2075, 449)
    PM_num_max = (2077, 840)
    PM_cur_pic = (725, 425, 845, 465) # 价格识别区域
    PM_cur_num = (1004, 418, 1165, 469) # 数量识别区域